package com.yisu.auction.manager.core.mapper;


import com.yisu.auction.ewf.entity.Prize;
import com.yisu.auction.manager.domain.request.baseInfoPackage.GoodsInfoRequest;
import com.yisu.auction.manager.domain.request.memberPackage.WinnerRequest;
import com.yisu.auction.manager.domain.vo.winnerInfoPackageVos.WinnerVo;

import java.util.List;

public interface PrizeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Prize record);

    int insertSelective(Prize record);

    Prize selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Prize record);

    int updateByPrimaryKeyWithBLOBs(Prize record);

    int updateByPrimaryKey(Prize record);

    /**
     * author:
     * @param winnerRequest
     * @return
     */
    List<WinnerVo> getWinnerInfoByPage(WinnerRequest winnerRequest);

    /**
     * author: 赵杰
     * Business Description：通过商品ID和期号获取当前的prizeId
     * @param goodsInfoRequest
     * @return
     */
    long getPrizeIdByGoodsIdAndTerm(GoodsInfoRequest goodsInfoRequest);
}